import proFetch from "../../../../../../public/functions/project-fetch";

/**
 * 模板设置
 * @returns {Promise<any>}
 * @constructor
 */
export default function wpsInitDesign(pk_conmodel, pk_org) {
    let postData = {
        pk_conmodel,
        pk_org
    }
    
    return new Promise( ((resolve, reject) => {
        proFetch({
            url: '/nccloud/hrpub/rptdef/DesignAction.do',
            body: postData,
        })
            .then((res) => {
                if (res.success) {
                    resolve(res)
                }
            });
        })
    );
}